package com.news.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class NewsPotActivity extends Activity {
	
	ImageButton ib_netease;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ib_netease = (ImageButton)findViewById(R.id.netease_news_button);
        ib_netease.setOnClickListener(new NewsOnClick() );
    }
    
    private class NewsOnClick implements View.OnClickListener
    {
		public void onClick(View v) 
		{
			//Parser the xml file in the SDCARD
			//Can fetch the network resource than Parser later...
			Intent intent = new Intent();
			intent.setClass(NewsPotActivity.this, NewsListActivity.class);
			startActivity(intent);
		}
    	
    }
}